<table width="100%" border="0" cellpadding="0" cellspacing="1" class="STYLE1" bgcolor="b5d6e6">
  <tr>
    <td colspan="3" align="left" background='<%=$urr+"skin/images/bg.gif"%>'><img src='<%=$urr+"skin/icon/web_icon_015.gif"%>' width="16" height="16" />
      <span class="STYLE3"><%=@titles %></span></td>
  </tr>
</table>
<fieldset>
  <% form_for :level, @level, :url => { :action => "update" }  do |f| %>
    <%= hidden_field :level, :id %>
    <p>
      <%= f.label :name,"级别名称" %><br />
      <%= f.text_field :name %>
    </p>
    
    <p>
      <%= f.label :host,"域名标识" %><br />
      <%= f.text_field :host %>
    </p>

    <p>
      <%= f.label :is_default,"是否主站" %><br />
      <%=radio_button_tag "level[is_default]", "1",false%>主站
      <%=radio_button_tag "level[is_default]", "0",true%>非主站
    </p>

     <p>
      <%= f.label :col_level,"栏目级别" %><br />
      <%= f.text_field :col_level %>
    </p>

    <p>
      <%= f.label :res_level,"资源级别" %><br />
      <%= f.text_field :res_level %>
    </p>
    
    <p>
      <%= f.submit '确定' %>          &nbsp;&nbsp;&nbsp;&nbsp;<%= link_to '返回列表', url_for(:back) %>
    </p>
  <% end %>
</fieldset>